/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package EnigmaUtils;

import Actors.Actor;
import Actors.HumanControlledBall;
import Actors.KillerBall;

/**
 *
 * @author Snowangelic
 */
public class ActorFactory {
    public ActorFactory(){
    }

    Actor generateActor(String type){
        if(type==null) return null;
        else if(type.equals("")) return null;
        else if(type.equals("HumanControlledBall")) return new HumanControlledBall();
        else if(type.equals("KillerBall")) return new KillerBall();
        else return null;
    }
}
